#include <iostream>
using namespace std;

/*
    【题目193】定义一个学生类，其有三个数据成员：学号、姓名、年龄，以及若干成员函数。同时编写mainO函数，实现对学生数据的赋值和输出。
*/
class Student
{
private:
    int id;
    string name;
    int age;

public:
    Student(int id, string name, int age)
    {
        this->id = id;
        this->name = name;
        this->age = age;
    }

    void print()
    {
        cout << "id: " << id << endl;
        cout << "name: " << name << endl;
        cout << "age: " << age << endl;
    }
};

int main()
{
    Student s1(1, "Tom", 18);
    s1.print();

    return 0;
}